import {
  setting
} from '../../apis/start';

Page({
  data: {
    startPage: ""
  },

  onLoad() {
    this.getSetting();

    
  },

  getSetting(){
    setting().then(res => {
      this.setData({
        startPage: res.data.data.startPage
      });
      setTimeout(() => {
        wx.switchTab({
          url: '/pages/index/index'
        });
      }, 1500);
    }).catch(err => {
      console.log("错误")
      setTimeout(() => {
        wx.switchTab({
          url: '/pages/index/index'
        });
      }, 1500);
    })
  }


})